<div class="deal_view line">
	<div class="unit size3of5">
		<table>
			<tbody>
				<tr>
					<th><?php echo __("Title"); ?></th>
					<td><?php echo $deal["Deal"]["title"]; ?></td>
				</tr>
				<tr>
					<th><?php echo __("Listing"); ?></th>
					<td><?php echo $html->link($deal["Listing"]["title"],array('plugin'=>null,'controller'=>'listings','action'=>'view',$deal["Listing"]["id"])); ?></td>
				</tr>
				<tr>
					<th><?php echo __("Category"); ?></th>
					<td><?php echo $html->link($deal["ListCategory"]["name"],array('plugin'=>null,'controller'=>'categories','action'=>'view',$deal["ListCategory"]["id"])); ?></td>
				</tr>
				<tr>
					<th><?php echo __("Regular Price"); ?></th>
					<td><?php echo $deal["Deal"]["regular_price"]; ?></td>
				</tr>
				<tr>
					<th><?php echo __("Discount Type"); ?></th>
					<td><?php echo $discountTypes[$deal["Deal"]["discount_type"]]; ?></td>
				</tr>
				<tr>
					<th><?php echo __("Discount"); ?></th>
					<td><?php echo $deal["Deal"]["discount"] . (($deal["Deal"]["discount_type"] == Deal::DISCOUNT_TYPE_PERCENT)?" %":"");?></td>
				</tr>
				<tr>
					<th><?php echo __("Total Deals"); ?></th>
					<td><?php echo ((!$deal["Deal"]["total_quantity"])?__("No limit"):$deal["Deal"]["total_quantity"]); ?></td>
				</tr>
				<tr>
					<th><?php echo __("Will Expire On"); ?></th>
					<td><?php echo $deal["Deal"]["expires"]; ?></td>
				</tr>
				<tr>
					<th><?php echo __("Highlights"); ?></th>
					<td><?php echo $deal["Deal"]["description"]; ?></td>
				</tr>
			</tbody>
		</table>
	</div>
<?php if(!empty($dealAsset)) { ?>
	<div class="image unit size2of5">
		<div class="line">
			<div class="unit size1of5">&nbsp;</div>
			<div class="unit size4of5">
				<div class="image">
					<?php echo $html->image($dealAsset['DealAsset']['file_url'],array('thumb'=>cr("Thumbs.listingMed"))); ?>
				</div>
				<div class="clear"></div><br/><br/>
				<?php echo $html->link(__("View all images"),array("plugin"=>"deals","controller"=>"deal_assets","action"=>"index",$deal['Deal']['id'])); ?>
			</div>
		</div>
	</div>
<?php } ?>
</div>
<div class="clear"></div>